Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
google-maps
Advanced tools
Async loader for google maps api.
Version >= 4.0.0: Typescript definitions are published with this package. Install @types/google-maps
for previous
versions.
This module does not change original google maps api in any way. It just provide easy way to load and use this API asynchronously.
Browser only!
$ npm install --save google-maps
or with Pika:
<script type="module">
import { Loader } from 'https://cdn.pika.dev/google-maps';
// todo: see docs bellow
</script>
import {Loader, LoaderOptions} from 'google-maps';
// or const {Loader} = require('google-maps'); without typescript
const options: LoaderOptions = {/* todo */};
const loader = new Loader('my-api-key', options);
const google = await loader.load();
const map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 8,
});
Without await/async:
loader.load().then(function (google) {
const map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 8,
});
});
version
: https://developers.google.com/maps/documentation/javascript/versionsclient
: https://developers.google.com/maps/documentation/javascript/get-api-key#client-idchannel
: https://developers.google.com/maps/premium/reports/usage-reports#channelslanguage
: https://developers.google.com/maps/documentation/javascript/localizationregion
: https://developers.google.com/maps/documentation/javascript/localization#Regionlibraries
: https://developers.google.com/maps/documentation/javascript/libraries4.2.3
4.2.2
clientID
#774.2.0
4.1.1
4.1.0
4.0.0
3.2.1
3.2.0
3.1.0
3.0.0
2.1.1
2.1.0
2.0.0
1.0.0
FAQs
Async loader for google maps api (browser, typescript)
The npm package google-maps receives a total of 35,728 weekly downloads. As such, google-maps popularity was classified as popular.
We found that google-maps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.